package com.ethink.order.api.model;

import com.ethink.order.api.info.SaleDetailOrderInfo;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author default
 * @version 1.0.0
 * @ClassName SaleDetailOrderModel.java
 * @Description
 * @createTime 2022年11月22日 14:13:00
 */
@Data
public class SaleDetailOrderModel extends SaleDetailOrderInfo {

    @Schema(description = "销售总额")
    private BigDecimal sumPrice;

    @Schema(description ="成本单价")
    private BigDecimal costPrice;

    @Schema(description ="商品过期日期")
    @JsonFormat(locale = "zh",timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date expireDate;

    @Schema(description ="可用库存")
    private Integer availableQty;

}
